<?php

namespace common\addons\diandi_dingzuo\models;

use Yii;

/**
 * This is the model class for table "diandi_dingzuo_record".
 *
 * @property int $id
 * @property int|null $user_id 用户id
 * @property int|null $create_time
 * @property int|null $update_time
 * @property int|null $merchant 商家id
 */
class record extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'diandi_dingzuo_record';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['id', 'user_id', 'create_time', 'update_time', 'merchant'], 'integer'],
            [['id'], 'unique'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => '用户id',
            'create_time' => 'Create Time',
            'update_time' => 'Update Time',
            'merchant' => '商家id',
        ];
    }
}
